package com.atguigu07.encapsulation.ex3;

import java.util.Scanner;

public class Employeetest {
    public static void main(String[] args) {
        Scanner myscanner=new Scanner(System.in);
        Employee[] employees=new Employee[3];
        for (int i = 0; i <employees.length ; i++) {
            employees[i]=new Employee();
            employees[i].setName(myscanner.next());
            employees[i].setSex(myscanner.next());
            employees[i].setTel(myscanner.next());

        }
        for (int i = 0; i <employees.length ; i++) {
            System.out.println(employees[i].getInfor());
            System.out.println("-------------------------");
        }
    }


}
